package com.szpx.service.impl;

import com.szpx.entity.ZJY.zixun;
import com.szpx.mapper.zixunMapper;
import com.szpx.service.zixunService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;

@Service
@Transactional
public class zixunServiceImpl implements zixunService {

    @Autowired
    private zixunMapper zixunMapper;

    @Override
    public List<zixun> selectAllzixun() {
        return zixunMapper.selectAll();
    }

    @Override
    public int addZixun(zixun zixun) {
        return zixunMapper.insertSelective(zixun);
    }

    @Override
    public int deleteZixun(Integer id) {
        return zixunMapper.deleteByPrimaryKey(id);
    }
}